package cn.edu.neusoft.yuejian.model;

import cn.edu.neusoft.yuejian.service.syservice;
import cn.edu.neusoft.yuejian.service.userservice;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/10/10.
 */

public class usermodel {
    private Retrofit retrofit;
    public usermodel(){
        retrofit=new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();

    }
    public Call login(String tel,String password){
        userservice userService = retrofit.create(userservice.class);
        return userService.login(tel,password);
    }
    public Call Reg(String tel,String password){
        userservice userService = retrofit.create(userservice.class);
        return userService.Reg(tel,password);
    }
}
